﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Playables;

[Serializable]
public class MouthAnimationClip : PlayableAsset
{
    [SerializeField]
    public string eventName;
    public override Playable CreatePlayable(PlayableGraph graph, GameObject owner)
    {
        var playAble = ScriptPlayable<MouthAnimationBehaviour>.Create(graph);

        MouthAnimationBehaviour behaviour = playAble.GetBehaviour();
        behaviour.mouthEventName = eventName;

        return playAble;
    }
}
